<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="typeList" item="vo"}
            <label for="row[type]-{$key}"><input id="row[type]-{$key}" name="row[type]" type="radio" value="{$key}" {in name="key" value="7"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Subscribe_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="subscribeTypeList" item="vo"}
            <label for="row[subscribe_type]-{$key}"><input id="row[subscribe_type]-{$key}" name="row[subscribe_type]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="xiluhouse/user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('House_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-house_id" data-source="xiluhouse/house/house/index" class="form-control selectpage" name="row[house_id]" data-params='{"custom[status]":"normal"}' type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Broker_user_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-broker_user_id" data-rule="required" data-source="xiluhouse/user/user/index" data-field="nickname" data-params='{"custom[userprofile.is_broker]":"2"}' class="form-control selectpage" name="row[broker_user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="required,mobile" class="form-control" name="row[mobile]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="genderList" item="vo"}
            <label for="row[gender]-{$key}"><input id="row[gender]-{$key}" name="row[gender]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('View_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-view_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[view_date]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Min_total_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-min_total_price" class="form-control" step="0.01" name="row[min_total_price]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Max_total_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-max_total_price" class="form-control" step="0.01" name="row[max_total_price]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">省市区:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline" data-toggle="cxselect" data-selects="prov,city,region">
                <select class="prov form-control" name="prov" data-url="xiluhouse/ajax/area">
                </select>
                <select class="city form-control" name="city" data-url="xiluhouse/ajax/area">
                </select>
                <select class="region form-control" name="region" data-url="xiluhouse/ajax/area">
                </select>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('House_search_roomnum_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-house_search_roomnum_ids" data-rule="required" data-source="xiluhouse/house/housesearchroomnum/index" data-multiple="true" class="form-control selectpage" name="row[house_search_roomnum_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Note')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-note" class="form-control " rows="5" name="row[note]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
